package com.jzo2o.customer.model.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("机构入驻注册响应结果")
public class InstitutionRegisterDTO {

    @ApiModelProperty("响应消息")
    private String message;
    @ApiModelProperty("响应码")
    private Integer code;

    /**
     * 设置成功响应*/
    public static InstitutionRegisterDTO success() {
        return new InstitutionRegisterDTO("成功", 200);
    }
    /**
     * 创建失败响应*/
    public static InstitutionRegisterDTO fail() {
        return new InstitutionRegisterDTO("失败", 500);
    }

}
